package com.gd.coreservice.service;

import com.gd.coreservice.entity.Orders;
import com.baomidou.mybatisplus.extension.service.IService;
import com.gd.coreservice.entity.vo.OrdersVo;

import java.util.List;
import java.util.Map;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author testjava
 * @since 2024-03-23
 */
public interface OrdersService extends IService<Orders> {

    List<Orders> findAll();

    Orders getOneOrder(String oid);

    List<OrdersVo> findOneBUY(String sellerUid, String oid);

    boolean insertOrder(String buySid, String sellSid, String gid, String oprice);

    Integer deleteOrder(String oid);

    Integer deleteOrderBatch(List<String> oids);

    Map<String,Object> getOrderPage(Integer pageNum, Integer pageSize, String oid);

    int getAllTotal();

    String getPriceTotal();
}
